﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SCM.Domain.Ledger
{
    /// <summary>
    /// 库存表
    /// </summary>
    public class StockModel
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        public int ProductId { get; set; }
        public int StockId { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductCode { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 产品状态
        /// </summary>
        public int ProductStatus { get; set; }
        /// <summary>
        /// 类别编号
        /// </summary>
        public int CategoryId { get; set; }
        /// <summary>
        /// 产品规格
        /// </summary>
        public string Specifications { get; set; }
        /// <summary>
        /// 单位编号
        /// </summary>
        public int UnitId { get; set; }
        /// <summary>
        /// 条码
        /// </summary>
        public string Barcode { get; set; }
        /// <summary>
        /// 仓库编号
        /// </summary>
        public int DepotId { get; set; }
        /// <summary>
        /// 库位编号
        /// </summary>
        public int LocationId { get; set; }
        /// <summary>
        /// 当前库存
        /// </summary>
        public int Stocknum { get; set; }
        /// <summary>
        /// 库存金额
        /// </summary>
        public double StockMoney { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDel {  get; set; }=false;
    }
}
